package com.oocl.webmvc.factory;

import com.oocl.webmvc.service.CustomerService;
import com.oocl.webmvc.service.impl.CustomerServiceImpl;

/**
 * @description: 
 * @author  XIEMI2
 * @date Aug 7, 2017 4:24:18 PM
 * @version 1.0
 */
public class ServiceFactory {

	private static CustomerService customerService;

	/**
	 * 拿到 单例 的 customerService
	 * @return
	 */
	public static CustomerService getCustomerService() {
		if(customerService == null){
			customerService = new CustomerServiceImpl();
		}
		return customerService;
	}
	
	
}


